import {INIT_ORDER} from './mutation-type'
export default{
  state:{
    list:[],             //存储订单信息
    order_id :localStorage.getItem('tea_orderId') || ''
  },
  mutations:{
    [INIT_ORDER](state,orderId){
      // 存储订单信息
      state.list=orderId

      //存储订单号
      state.order_id = orderId[0].order_id;

      // 本地存储订单id号
      localStorage.setItem('tea_orderId',orderId[0].order_id)
    }
  }
}